<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

<h:body>
    <p:growl id="growP" showDetail="true" life="3000" />

    <h:panelGrid columns="2">
        <h:outputText for="pablisherName" value="Name:*"/>
        <p:inputText id="pablisherName" value="#{publisherBean.newPublisherName}" required="true"
                     label="pablisherName"/>

        <h:outputText for="publisherWebsite" value="Website:"/>
        <p:inputText id="publisherWebsite" value="#{publisherBean.newPublisherWebsite}" required="true"
                     label="publisherWebsite" />

        <f:facet name="footer">
            <p:commandButton id="saveButton" update=":publisherss_list_form:PublishersTable, growP" value="Save"
                             actionListener="#{publisherBean.saveNewPublisher}"
                             oncomplete="handleCreatePublisherRequest(xhr, status, args)" />
        </f:facet>
    </h:panelGrid>
</h:body>
</html>

